﻿/*******************************************************************************
 
 * Author: Dealin
 
 
*********************************************************************************/
using Dealin.Application.ReportManage;
using Dealin.Code;
using System.Web.Mvc;
namespace Dealin.Web.Areas.ReportManage.Controllers
{
    public class ComparisonsController : ControllerBase
    {
        private ReportsApp app = new ReportsApp();
 

        public string GetDefaultData()
        {
            string orgId = OperatorProvider.Provider.GetCurrent().CompanyId;
            var json = app.GetDefaultJson(orgId);
            return json;
        }
        //单相表对比
        public string Get_Comparisons_Meter_1(string typeTime, string startTime, string endTime, string devs, string lineType)
        {
            var json = app.Get_Comparisons_Meter_1(typeTime, startTime, endTime, devs, lineType);
            return json;
        }
        ////温湿度表对比
        public string Get_Comparisons_Meter_2(string typeTime, string startTime, string endTime, string devs, string lineType)
        {
            var json = app.Get_Comparisons_Meter_2(typeTime, startTime, endTime, devs, lineType);
            return json;
        }
        ////三相表对比
        public string Get_Comparisons_Meter_3(string typeTime, string startTime, string endTime, string devs, string lineType)
        {
            var json = app.Get_Comparisons_Meter_3(typeTime, startTime, endTime, devs, lineType);
            return json;
        }


    }
}
